package com.tobestronger.gulimall.product.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.tobestronger.gulimall.product.entity.CategoryEntity;

import java.util.List;

public class CategoryEntityWithChildren extends CategoryEntity {

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<CategoryEntityWithChildren> children;

    public List<CategoryEntityWithChildren> getChildren() {
        return children;
    }

    public void setChildren(List<CategoryEntityWithChildren> children) {
        this.children = children;
    }

}
